﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Audit_Configuration_Oracle.DAL;

namespace Audit_Configuration_Oracle.Controllers
{
    public class HistoryController
    {
        public static string [] DEFAULT_DATA { get{ return HistoryDAL.DEFAULT_COLUMNS;}}
        
        public static DataSet GetResutls(string dateStart, string dateEnd, string user, string obj, List<string> customColumns = null)
        {
            DataSet ds = null;
            try
            {
                ds = HistoryDAL.GetResutls(dateStart, dateEnd, user, obj, customColumns);
            }
            catch (Exception e)
            {
                throw e;
            }
            return ds;
        }

        public static List<string> GetAuditColumns()
        {
            List<string> columns = null;
            try
            {
                columns = HistoryDAL.GetAuditColumns();
            }
            catch (Exception e)
            {
                throw e;
            }
            return columns;
        }
    }
}
